﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.DAO;
using SyndicateDAO.DatabaseObject;

namespace SyndicateBusiness.Classes
{
    public class FundsLogBL
    {
        private FundsLogDAO FundsLogDAO = new FundsLogDAO();

        public IQueryable<fundsLog> SelectAllBySyndicateId(int sId)
        {
            return FundsLogDAO.SelectAllBySyndicateId(sId);
        }

        public IQueryable<fundsLog> SelectAllByFromUserId(int uId)
        {
            return FundsLogDAO.SelectAllByFromUserId(uId);
        }

        public IQueryable<fundsLog> SelectAllByToUserId(int uId)
        {
            return FundsLogDAO.SelectAllByToUserId(uId);
        }
        public bool InsertEntry(fundsLog l)
        {
            return FundsLogDAO.InsertEntry(l);
        }
        public bool UpdateEntry()
        {
            return FundsLogDAO.UpdateEntry();
        }
        public bool DeleteEntry(fundsLog l)
        {
            return FundsLogDAO.DeleteEntry(l);
        }

    }
}
